package week4;

/**
 * Created by dell on 2017/3/17.
 */
public class Game3RPG {
    public static void main(String[] args){
        SwordsMan swordsMan = new SwordsMan();
        swordsMan.setName("Justin");
        swordsMan.setLevel(1);
        swordsMan.setBlood(200);

        Magician magician = new Magician();
        magician.setName("Monica");
        magician.setLevel(2);
        magician.setBlood(300);

        drawFight(swordsMan);
        drawFight(magician);
    }

    static void drawFight(Game1 role) {
        System.out.print(role.getName());
        role.fight();
    }
}
